package mapper.user;


import org.apache.ibatis.annotations.Param;
import pojo.Flower;

import java.util.List;

public interface FlowerMapper {

    //查询
    public List<Flower> getFlowerList(@Param("flowerName")String flowerName,@Param("flowerNumber")Integer flowerNumber,@Param("pageBegin")Integer pageBegin,@Param("pageSize")Integer pageSize);

    //新增
    public Integer addFlower(Flower flower);

    //删除
    public Integer deleteFlower(Integer flowerId);

    //详情
    public Flower getFlowerListByUserId(Integer userId);

    //修改
    public int updateFlower(Flower flower);

    //总记录数
    public int getFlowerById();
}
